package cn.tedu.shoot;

import javax.swing.*;
import java.awt.image.BufferedImage;

public class Start extends JFrame {
    public static final int WIDTH = 400;
    public static final int HEIGHT = 700;


    public Start(){
        this.setSize(WIDTH,HEIGHT);
        this.setLocationRelativeTo(null);
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        this.setTitle("飞机大战");
    }
    public static void main(String[] args) {
        Start start = new Start();
        World world = new World();
        start.add(world);
        start.setVisible(true);
        world.action();
    }
}
